<%-- 
    Document   : danhmucsanphamcontent
    Created on : Oct 7, 2011, 10:00:17 AM
    Author     : Administrator
--%>

<%@page import="hibernate.pojo.Loaisanpham"%>
<%@page import="java.util.List"%>
<%@page import="hibernate.pojo.Loaisanpham"%>
<%@page import="org.hibernate.HibernateException"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<li>
    <a href="admincatalogcontroller?action=listdealbycatalog&amp;catalogtype=restaurant">Danh Mục Sản Phẩm</a>
    <ul>
        <%
            try
            {
                List<Loaisanpham> arrLoaiSanPham = (List<Loaisanpham>)session.getAttribute("DanhSachLoaiSanPham");
                if(arrLoaiSanPham!=null)
                {
                    for(int i=0; i<arrLoaiSanPham.size(); i++)
                    {
                        Loaisanpham loaisanpham = arrLoaiSanPham.get(i);
                        
        %>
                        <li><a href="admincatalogcontroller?action=listdealbycatalog&amp;catalogtype=<%=loaisanpham.getTenTrang()%>"><img src="<%=loaisanpham.getIconLoaiSanPham()%>" alt="" /><%=loaisanpham.getTenLoaiSanPham()%></a></li>
        <%
                    }
                }
            }
            catch(HibernateException ex)
            {
                out.println(ex);
            }
        %>
    </ul>
</li>